53636d77d07cc35a8cdd2b308ddc751fbc92caa7,cli/src/main/java/org/jboss/as/cli/handlers/DeployHandler.java,DeployHandler,doHandle,#CommandContext#,220
Before Change
this.force.getFullName() + " to replace the existing content in the repository).");
return;
}
addDeployment(ctx, f, name, runtimeName);
} else if(!Util.isDeploymentInRepository(name, client)) {
ctx.printLine("'" + name + "' is not found among the registered deployments.");
return;
After Change
return;
} else if(ctx.isDomainMode()) {
// add deployment to the repository (enabled in standalone, disabled in domain (i.e. not associated with any sg))
final ModelNode request = buildAddRequest(ctx, f, name, runtimeName);
execute(ctx, request, f);
return;
}
// standalone mode will add and deploy
}
if(disabled) {
if(f == null) {
ctx.printLine(this.disabled.getFullName() + " requires a filesystem path of the deployment to be added to the deployment repository.");
return;
}
if(serverGroups != null || allServerGroups) {
ctx.printLine(this.serverGroups.getFullName() + " and " + this.allServerGroups.getFullName() +
" can't be used in combination with " + this.disabled.getFullName() + '.');
return;
}
if(Util.isDeploymentInRepository(name, client)) {
ctx.printLine("'" + name + "' already exists in the deployment repository (use " +
this.force.getFullName() + " to replace the existing content in the repository).");
return;
}
// add deployment to the repository disabled
final ModelNode request = buildAddRequest(ctx, f, name, runtimeName);
execute(ctx, request, f);
return;
}